<?php session_start();
validaAcesso();
echo "<h2>Cadastro de ".$_SESSION["menu"]["cad"][18]."</h2>";

require_once"funcoes/hostel_item.jsp";

if(isset($_GET[grava])==1){    
    setItem(0,$_POST["edt_item"],$_POST["pid_categoria"],$_SESSION["loginCK_"]);
}
?>

<form method="POST" action="index.jsp?grava=1&cad=18" autocomplete="off">
<div class='item'><h5>Produto</h5><input type="text" size="20" maxlength="20" name="edt_item"> Ex: Coca-Cola,sorvete, Cerveja</div><br>


<div class='item'><h5>Categoria Item:</h5>
<select name="pid_categoria">
<?php
require_once"funcoes/hostel_categoria_item.jsp";
getCategoriaItem(0,"select");
?>
</select>


<br>
<div class='item'><h5>&nbsp;</h5><input type="submit" value="cadastrar"></div>

</form>

<?php
getItem(0,"lista");
?>